<template>
  <!-- 友链模板 -->
  <div class="index">
    <div class="left">
      <el-avatar
        size="large"
        :src="info.headerUrl"
        style="width: 64px; height: 64px"
      ></el-avatar>
    </div>
    <div class="right">
      <div class="name">{{ info.name }}</div>
      <div class="desc">{{ info.desc }}</div>
    </div>
  </div>
</template>

<script setup>
import { defineProps } from "vue";

defineProps({
  info: {
    type: Object,
  },
});
</script>

<style lang="scss" scoped>
.index {
  width: 240px;
  padding: 10px;
  min-height: 96px;
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1.5px solid rgb(230, 230, 230);
  border-radius: 13px;
  transition: all 0.3s;
  cursor: pointer;

  @media (max-width: 768px) {
    width: 100%;
    margin: 10px auto;
  }

  .right {
    .name {
      font-size: 17px;
      font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
      font-weight: 600;
      color: #71aaef;
    }
    .desc {
      font-size: 12px;
      color: rgb(122, 125, 125);
      font-weight: 500;
    }
  }
}

.index:hover {
  transform: scale(1.05);
}
</style>